
package org.opentravel.ota._2003._05;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>List_OfferTravelSegment的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <p>
 * <pre>
 * &lt;simpleType name="List_OfferTravelSegment">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="LeisureAndActivities"/>
 *     &lt;enumeration value="Lodging"/>
 *     &lt;enumeration value="Transportation"/>
 *     &lt;enumeration value="TravelServices"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "List_OfferTravelSegment")
@XmlEnum
public enum ListOfferTravelSegment {

    @XmlEnumValue("LeisureAndActivities")
    LEISURE_AND_ACTIVITIES("LeisureAndActivities"),
    @XmlEnumValue("Lodging")
    LODGING("Lodging"),
    @XmlEnumValue("Transportation")
    TRANSPORTATION("Transportation"),
    @XmlEnumValue("TravelServices")
    TRAVEL_SERVICES("TravelServices");
    private final String value;

    ListOfferTravelSegment(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ListOfferTravelSegment fromValue(String v) {
        for (ListOfferTravelSegment c: ListOfferTravelSegment.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
